//
//  ButtonView.swift
//  SwiftUI-CTao
//
//  Created by 涛 on 2019/9/17.
//  Copyright © 2019 涛. All rights reserved.
//

import SwiftUI

struct ButtonView: View {
    
    var body: some View {
        VStack {
            Button(action: /*@START_MENU_TOKEN@*/{}/*@END_MENU_TOKEN@*/) {
                Text("accentColor属性，设置成了yellow")
            }
            .accentColor(Color.yellow)
            
            Button(action: {print("111")}) {
                Text("还有很多啊，就自己看着用吧")
            }
        }
    }
}

struct ButtonView_Previews: PreviewProvider {
    static var previews: some View {
        ButtonView()
    }
}
